﻿using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using SmartCity.Shared;
using Volo.Abp;
using Volo.Abp.AspNetCore.Mvc;

namespace ParkManagement
{
    /// <summary>
    /// 纠错控制器
    /// </summary>
    [Authorize]
    [RemoteService]
    [Area("commonManagement")]
    [Route("api/parkManagement/corrects")]
    public class CorrectController : AbpController, ICorrectAppService
    {
        private readonly ICorrectAppService _correctAppService;

        public CorrectController(
            ICorrectAppService correctAppService)
        {
            _correctAppService = correctAppService;
        }

        // 创建
        [HttpPost]
        [Route("")]
        public Task<ActionResponse> CreateAsync(CreateCorrectDto input)
        {
            return _correctAppService.CreateAsync(input);
        }
    }
}